All Functions of Week 3

ggtitle

{GGPLOT2}

Generates a title for a ggplot graph

matrix

{base}

Creates a matrix from the given set of values.

setwd

{base}

Set Working Directory

order

{base}

Get indexes that will sort a vector

theme_bw

{GGPLOT2}

A black and white ggplot theme

round

{base}

Rounds numbers

runif

{stats}

Draws ranndom numbers from the uniform distribution

geom_histogram

{GGPLOT2}

Generates a histogram

mean

{base}

Get mean of a vector

unique

{base}

get unique elements

c

{base}

Combine values/vectors into a vector

geom_density

{GGPLOT2}

Generates a density plot

plot

{graphics}

Generic function from base R to produce a plot

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

sample

{base}

Takes a sample of the specified size

names

{base}

Retrieve names of a list/vector

ylab

{GGPLOT2}

Label the y axis (ggplot)

boxplot

{graphics}

Plot a simple box plot

seq

{base}

Create a sequence

rnorm

{base}

Generate random numbers from a normal distribution

ggplot

{GGPLOT2}

Create a ggplot graph

set.seed

{base}

Initialise a pseudorandom number generator.

which.max

{base}

return index of the largest value in a vector

after_stat

{GGPLOT2}

Control aesthetic evaluation. On the module used for displying percent

attach

{base}

Attach Set of R Objects to Search Path

as.data.frame

{base}

Functions to check if an object is a data frame, or coerce it if possible.

hist

{graphics}

Plot a simple histogram

str

{utils}

Get the structure of an R object

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

rbeta

{stats}

Beta Random Number Generating Function

class

{base}

Retrieve class of an R object

read.spss

{foreign}

Read a .sav file (SPSS data)

xlab

{GGPLOT2}

Label the x axis (ggplot)

get_mode

{rstatix}

Compute the mode in a given vector.

tabulate

{base}

Counts the number of times each integer occurs in an integer-only vector

library

{base}

Load an R package

The end!